var entries = mgr.query("from BlogEntry");
log.info("Updating entry descriptions...");
var count = 0;
for (var i = 0; i < entries.size(); i++) {
  var entry = entries.get(i);
  var description = entry.getOldContent();
  if (description != null) {
    count++;
    entry.setOldContent(null);
    entry.setWikiContent(new WikiContent(description, WikiStyle.fitnesse));
    updater.update(entry);
  }
}
log.info("Updated " + count + " entries.");
